<html xmlns="http://www.w3.org/1999/xhtml"><head profile="http://gmpg.org/xfn/11">

<title></title>
<meta content="<?php echo $nama_sekolah;?>" name="description">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="2 days" name="revisit-after">
<meta content="all,index,follow" name="robots">
<meta content="TRUE" name="MSSmartTagsPreventParsing">
<meta http-equiv="Content-Language" content="en-us">

<meta content="Global" name="Distribution">
<meta content="General" name="Rating">
<link href="images/favicon.ico" type="image/x-icon" rel="Shortcut Icon">
<!-- <link href="images/web-logo.gif" rel="image_src"> -->

<style type="text/css">


body {
    background-color: #FFFFFF;
    font-family: Arial,Helvetica,sans-serif;
    font-size: 12px;
    margin: 0;
    padding: 0;
    text-align: center;
}


.no-style {
    background: none repeat scroll 0 0 transparent;
    border: medium none;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
	font-family: Arial,Helvetica,sans-serif;
    font-size: 12px;
}


.rapor {
    border-collapse: collapse;
    border-color: #000000;
    border-style: solid;
    border-width: 1px;
    font-family: "Lucida Sans Unicode","Lucida Grande",Sans-Serif;
    font-size: 10px;
    text-align: left;
}

</style>

</head><body onLoad="window.print();"><center>

<table width="700" cellspacing="1" cellpadding="1" border="0"><tbody><tr><td align="left">
<table width="700" cellspacing="1" cellpadding="1" border="0" align="center" class="no-style">
  <tbody><tr>
    <td width="10%" rowspan="4"><img widht="90px" src="<?php echo $logo;?>"></td>
    <td valign="top" align="center"><h1><?php echo $nama_sekolah;?></h1></td>
  </tr>
  <tr>
    <td width="90%" align="center">
	<?php echo $alamat_sekolah;?>
	</td>
  </tr>
  <tr>
    <td align="center">
    <?php echo $telp_sekolah;?> - 
	Email <?php echo $email;?></td>
  </tr>
  <tr>
    <td align="center"><h2>LAPORAN NILAI MATA KULIAH</h2></td>
  </tr>
</tbody></table>	
<br>
<table width="700" cellspacing="1" cellpadding="1" border="0" class="no-style">
  <tbody>
    <tr>
      <td width="11%" valign="middle"><strong>NAMA  </strong></td>
      <td width="2%" valign="middle"><strong>:</strong></td>
      <td width="51%" valign="middle"><strong><?php echo $siswa->nama; ?></strong></td>
      <td width="18%" valign="middle"><strong>TAHUN AJARAN</strong></td>
      <td width="2%" valign="middle"><strong> :</strong></td>
      <td width="16%" valign="middle"><strong><?php echo $siswa->tahun_ajaran; ?></strong></td>
    </tr>
    <tr>
      <td valign="middle"><strong>NIM</strong></td>
      <td valign="middle"><strong>:</strong></td>
      <td valign="middle"><strong><?php echo $siswa->nim; ?></strong></td>
      <td valign="middle"><strong>SEMESTER</strong></td>
      <td valign="middle"><strong>:</strong></td>
      <td valign="middle"><strong><?php echo $siswa->semester; ?></strong></td>
    </tr>
    <tr>
      <td valign="middle"><strong>KELAS</strong></td>
      <td valign="middle"><strong>:</strong></td>
      <td valign="middle"><strong><?php echo $siswa->nama_kelas; ?></strong></td>
      <td valign="middle">&nbsp;</td>
      <td valign="middle">&nbsp;</td>
      <td valign="middle">&nbsp;</td>
    </tr>
  </tbody>
</table>
<br>
<table width="700" cellspacing="1" cellpadding="3" border="1" class="rapor">
  <tbody><tr>
    <th width="31" align="center" valign="middle"><strong>NO</strong></th>
    <th width="144" align="center" valign="middle"><strong>KODE MK </strong></th>
    <th width="328" align="center" valign="middle"><strong>MATA KULIAH </strong></th>
    <th width="104" align="center" valign="middle"><strong>SKS ( T - P )</strong></th>
    <th width="45" align="center" valign="middle"><strong>NILAI</strong></th>
    </tr>
    <tr>
      <th align="center" valign="middle"><strong>(a)</strong></th>
      <th align="center" valign="middle"><strong>(b)</strong></th>
      <th align="center" valign="middle"><strong>(c)</strong></th>
      <th align="center" valign="middle"><strong>(d)</strong></th>
      <th align="center" valign="middle"><strong>(e)</strong></th>
      </tr>
    
    <?php
	
	$konvert = 0;
	$total_sks = 0;
	$jml_ttl = 0;
	$no = 1;
	foreach($saring as $tpl){
	
	?>
    <tr>
      <td align="center" valign="middle"><?php echo $no++; ?></td>
      <td align="center" valign="middle"><?php echo $tpl->kode_mata_kuliah; ?></td>
      <td align="left" valign="middle"><?php echo $tpl->mata_kuliah; ?></td>
      <td align="center" valign="middle"><?php echo $tpl->sks." ( ".$tpl->t." - ".$tpl->p." )"; ?></td>
      <td align="center" valign="middle"><?php
	  
	  			$matkul_skrg = $tpl->kode_mata_kuliah;
				$tampil_nilai = $tpl->nilai;
	  
	  			if($ulang!=NULL){
					foreach($ulang as $ubah){
						$matkul_cocok = $ubah->kode_mata_kuliah;
						if($matkul_cocok == $matkul_skrg){
							$tampil_nilai = $ubah->nilai;
						}
					}
				}
				
				echo $tampil_nilai;
	  			

	  ?></td>
      </tr>
    <?php
	
		$nilaiku = $tampil_nilai;
		if($nilaiku == "A"){
			$konvert =  "4";
		}elseif($nilaiku == "B"){
			$konvert =  "3";
		}elseif($nilaiku == "C"){
			$konvert =  "2";
		}elseif($nilaiku == "D"){
			$konvert =  "1";
		}
	
	$jml = $tpl->sks * $konvert;
	$total_sks = $total_sks+$tpl->sks;
	$jml_ttl = $jml_ttl+$jml;
	
	}
	
	?>
    <tr><td colspan="5">&nbsp;</td></tr><tr><td colspan="5"></td></tr>
  <tr>
    <th colspan="3">JUMLAH</th>
    <td colspan="2" align="center"><strong><?php echo $jml_ttl; ?></strong></td>
    </tr>
  <tr>
    <th colspan="3">INDEKS PRESTASI</th>
    <td colspan="2"><?php 
	if($jml_ttl!=""){
		echo substr($jml_ttl/$total_sks,0,4);
	}
	?></td>
  </tr>
  <tr>
    <td colspan="5">&nbsp;</td></tr>
  </tbody>
</table>
<table width="700" cellspacing="1" cellpadding="1" border="0" class="no-style">
  <tbody>
    <tr>
      <td width="13%" height="85" align="left" valign="top"><br>
        *Keterangan : </td>
      <td colspan="2" align="left" valign="top"><br>
        T = Teori<br>
        P = Praktek <br></td>
      <td width="50%" height="85" align="left" valign="top">&nbsp;</td>
    </tr>
    <tr>
      <td height="150" colspan="3" align="center" valign="top">
        <br>
        
        </td>
      <td valign="top" height="150" align="center">
        Yogyakarta, <?php echo $tanggal; ?><br>
        <?php echo $jabatan_ketua_kampus?><br>
        <?php echo $nama_sekolah?>
        </td>
    </tr>
  <tr valign="bottom" align="center">
    <td colspan="3">
	<u><b> </b></u><br> 
	</td>
    <td align="center">
      <u><b> <?php echo $nama_ketua_kampus?></b></u><br>NIP. <?php echo $nip_ketua_kampus?>
    </td>
  </tr>
</tbody></table></td></tr></tbody></table></center>

</body></html>
